export default{
    namespaced: true,
    state: {
        userinfo:{
            user:'',
            token:''
        }
    },
    mutations: {
        setUser(state,payload){
            state.userinfo = payload
        },
        clear(state){
            state.userinfo={
                user:'',
                token:''
            }
            localStorage.removeItem('user');
            
        }
    },
    actions: {
    },
    modules: {
    }

}